<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="oneroom.admin.oneroom.reportModel" %>
<jsp:useBean id="dao" scope="page" class="oneroom.admin.oneroom.roomService" />
<%
	String redirectUrl = "";
	if (session.getAttribute("id") != null &&
			((String)session.getAttribute("id")).equals("") == false) {
	} else {
		redirectUrl = "/room/member/login.jsp";
		response.sendRedirect(redirectUrl);
	}
	String oneroom_seq = request.getParameter("oneroom_seq");
	reportModel model = dao.setReport(request);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>원룸 - 매물정보</title>
<script type="text/javascript" src="/js/jquery-1.3.2.min.js"></script>
<script type="text/javascript">
<!--
$(document).ready(function(){
	<% 
		if(model.getGubun().equals("R")){
			if(model.isReturnVal()){
	%>
			alert("허위매물신고 완료 되었습니다.");
			window.location.href="map_view.jsp?oneroom_seq=<%=oneroom_seq%>";
	<%
			}else{
	%>
			alert("이미 허위신고하신 매물입니다.");
			window.location.href="map_view.jsp?oneroom_seq=<%=oneroom_seq%>";
	<%
			}
		}else if(model.getGubun().equals("F")){
			if(model.isReturnVal()){
	%>
			alert("매물매매완료  되었습니다.");
			window.location.href="map_view.jsp?oneroom_seq=<%=oneroom_seq%>";
	<%
			}else{
	%>
			alert("이미 매물매매완료 매물입니다.");
			window.location.href="map_view.jsp?oneroom_seq=<%=oneroom_seq%>";
	<%
			}
		}
	%>	
});
//-->
</script>
</head>
<body>

</body>
</html>